package com.example.democlient.network.serverpackets;

import java.nio.ByteBuffer;

import com.example.democlient.network.ServerConnection;
import com.example.democlient.network.packet.ServerPacket;

/**
 * 向服务器发送
 * @author Administrator
 *
 */
public class SM_ADDRESS_QUERY_REQUEST extends ServerPacket
{

	private final String addressName;
	
	public SM_ADDRESS_QUERY_REQUEST(String addressName)
	{
		super(0x11);
		this.addressName=addressName;
	}

	@Override
	protected void writeImpl(ServerConnection con, ByteBuffer buf)
	{
		writeS(buf,addressName);
	}
}
